package com.yunxin.core.infra.persistence.mapper.user;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zero°
 * @since 2023-11-25
 */
@DS("core")
@Mapper
public interface UserIpInfoExtendMapper extends UserIpInfoMapper{

    /**
     * 根据ip和渠道推广code查询ip信息id
     * @param ip ip
     * @param channelPromotionCode channelPromotionCode
     * @return id
     */
    Long getUserIpInfoIdByVisitorAndChannelPromotion(@Param("ip") String ip,
                                                          @Param("channelPromotionCode") String channelPromotionCode);
}
